﻿<AvalonDock:DockableContent x:Class="Poet.FindAndReplaceDialog"    
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                            xmlns:AvalonDock="clr-namespace:AvalonDock;assembly=AvalonDock" 
                            xmlns:Avalon="clr-namespace:Poet" Title="Find and Replace" 
                            Height="400" 
                            Width="300">
        
    <StackPanel>
        <TabControl Name="tabControl1">
            <TabItem Header="_Find" Name="tabItem1" GotFocus="TabItem1GotFocus">
                <Grid>

                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>

                    <Label Name="_rangeNumber" Content="Fi_nd what:" Grid.Row="0" Margin="7,0" />
                    <ComboBox  Name="SearchPatternTextBox" TabIndex="0"  Grid.Row="1" Margin="7,0" IsEditable="True" />
                    <Button Content="Search" IsDefault="True" Grid.Row="3" Height="23" HorizontalAlignment="Right" Name="_okButton" VerticalAlignment="Bottom" Width="75" Margin="0,7,7,7" Click="FindButtonClick"/>
                    <Avalon:SearchSettingsControl x:Name="FindSearchSettingsControl" Grid.Row="4"/>
                </Grid>
            </TabItem>

            <TabItem Header="_Replace" Name="tabItem2">
                <Grid>

                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>

                    <Label  Content="Fi_nd what:" Grid.Row="0" Margin="7,0" />
                    <ComboBox Name="ReplacePatternTextBox"  TabIndex="0"  Grid.Row="1" Margin="7,0" IsEditable="True" />
                    <Label Content="Re_place with:" Grid.Row="3" Margin="7,0"/>
                    <ComboBox Name="ReplaceComboBox"  TabIndex="0"  Grid.Row="4" Margin="7,0" IsEditable="True" />

                    <Button Content="Search" IsDefault="True" Grid.Row="5" Height="23" HorizontalAlignment="Right"  VerticalAlignment="Bottom" Width="75" Margin="0,7,7,7" Click="FindButtonClick" />
                    <Button Content="Replace" IsCancel="true" Grid.Row="5" Height="23" HorizontalAlignment="Right"  VerticalAlignment="Bottom" Width="75" Margin="0,7,88,7" Click="ReplaceButtonClick"/>

                    <Avalon:SearchSettingsControl x:Name="ReplaceSearchSettingsControl" Grid.Row="6"/>
                </Grid>
            </TabItem>
        </TabControl>
    </StackPanel>

</AvalonDock:DockableContent>
